import pandas
import pandas as pd

from application.db.mysql_db.nsfc.NsfcInfoSectionList import NsfcInfoSectionList

data=pd.read_csv('nsfc_info_section_list.csv')
for index,row in data.iterrows():
    print(row['section_id'])
    nsfcInfoSectionList = NsfcInfoSectionList.get(NsfcInfoSectionList.section_id == row['section_id'])
    nsfcInfoSectionList.media_info=row['media_info']
    nsfcInfoSectionList.save()